package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class SearchSellerOrdersOneTypeRequest {
    String keyWord;
    private long pageSize = 10;
    private long pageNum = 0;
    private String statusSet;

    private SearchSellerOrdersOneTypeRequest(Builder builder) {
        keyWord = builder.keyWord;
        pageSize = builder.pageSize;
        pageNum = builder.pageNum;
        statusSet = builder.statusSet;
    }

    public static Builder newBuilder() {
        return new Builder();
    }


    public static final class Builder {
        private String keyWord;
        private long pageSize = 10;
        private long pageNum = 0;
        private String statusSet;


        private Builder() {
        }

        public Builder keyWord(String keyWord) {
            this.keyWord = keyWord;
            return this;
        }

        public Builder pageSize(long pageSize) {
            this.pageSize = pageSize;
            return this;
        }

        public Builder pageNum(long pageNum) {
            this.pageNum = pageNum;
            return this;
        }

        public Builder statusSet(String statusSet) {
            this.statusSet = statusSet;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getSellerOrders(keyWord,statusSet,pageNum,pageSize);
        }
    }
}
